
export default class AdapterHelper {

    public static fixApdater() {
        let ratio: number = Laya.Browser.height / Laya.Browser.width;
        let designRatio: number = Laya.stage.designHeight / Laya.stage.designWidth;
        console.log("fixApdater==", ratio, designRatio)
        if (ratio > designRatio) {
            Laya.stage.scaleMode = "fixedwidth";
        } else {
            Laya.stage.scaleMode = "fixedHeight";
        }
        // Laya.stage.scaleMode = "showall"
    }
}


